<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="AdminContent" runat="server">
    <p>
        Welcome to WebsiteManager (WSM) to manage you web site</p>
    <p>
        Currently the following options are supported for your access &amp; role in the
        system</p>
    <table>
        <tbody>
            <%
                if (Page.User.IsInRole("Admin"))
                {
                
            %>
            <tr>
                <th>
                    <%= Html.ActionLink("Manage users", "List", "User")%>
                </th>
                <td>
                    Allows you to manage the user access levels, unlock their account etc.
                </td>
            </tr>
            <tr>
                <th>
                    <%= Html.ActionLink("Manage user roles", "List", "UserRole")%>
                </th>
                <td>
                    Allows you to manage the different roles for the application &amp; add/delete roles
                </td>
            </tr>
            <% } %>
            <tr>
                <th>
                    <%= Html.ActionLink("Manage your account", "Details", "User", new { username=Page.User.Identity.Name }, null)%>
                </th>
                <td>
                    Allows you to manage your account setting, password etc.
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminTitle" runat="server">
    Web site Administration Tool
</asp:Content>
